home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
pc_dcl.zip
/
BAR.DCL
next >
Wrap
Text File
|
1992-01-09
|
476b
|
16 lines
$ today == f$extract(0,11,f$time())
$ open /read/error=sethost infile "bar.dat"
$ read /error=sethost /end=sethost infile data
$ if f$extract(0,11,data) .EQS. today then goto exit
$sethost:
$ run sethost bigsys
$ open /write/error=file_error outfile "bar.dat"
$ write /error=file_error outfile today
$ close outfile /error=file_error
$ goto exit
$file_error:
$ write sys$output "File error"
$exit: